$(function() {
	
    $(window).resize(function() {
        $('#content_holder').height($(window).height() - 195);
    });
    $('#content_holder').height($(window).height() - 195);

    /* Content scroll */
    "use strict";
    /*$('#content_holder').perfectScrollbar({wheelSpeed:100});*/


    $('.birthday, #on_date').datepicker({
        format: "dd/M/yy",
        autoclose: true,
        yearRange: "-100:-5"
    });

    $('.bootstrap-timepicker-hour').removeAttr('name');
    $('.bootstrap-timepicker-minute').removeAttr('name');
    $('.bootstrap-timepicker-meridian').removeAttr('name');
	
    var h = 0;
    $("#advance_search_bt").click(function() {
        $("#advance_search").toggle(300);

        if (h == 0) {
            h = 1;
            $("#search_box").addClass('search-toggle');
            $("#advance_search_icon").addClass('s-expand');
        } else {
            h = 0;
            $("#search_box").removeClass('search-toggle');
            $("#advance_search_icon").removeClass('s-expand');
        }
    });
    $('[data-rel="chosen"],[rel="chosen"]').chosen();
});
